package com.yugao.fintech.antelope.mps.model.rqrs.history;

import com.yugao.fintech.antelope.base.model.module.dict.DictTypeCons;
import com.yugao.fintech.framework.desensitization.annotations.FieldBind;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 消息推送
 *

 */
@Getter
@Setter
@ApiModel(value = "消息历史")
public class HistoryQueryResp {
    private Long id;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "消息重试次数")
    private Integer retryCount;

    @ApiModelProperty(value = "消息推送的任务id")
    private Long taskId;

    @ApiModelProperty(value = "消息渠道编码")
    private String channelCode;

    @ApiModelProperty(value = "消息渠道名称")
    private String channelName;

    @ApiModelProperty(value = "消息组名称")
    private String groupName;

    @ApiModelProperty(value = "任务编码")
    private String taskCode;

    @ApiModelProperty(value = "渠道类型")
    @FieldBind(type = DictTypeCons.MSG_CHANNEL_TYPE, target = "channelTypeName")
    private String channelType;

    @ApiModelProperty(value = "渠道类型名称")
    private String channelTypeName;

    @ApiModelProperty(value = "模板数据, json格式")
    private Object tplData;

    @ApiModelProperty(value = "消息内容, 渲染之后的结果")
    private String msgContent;

    @ApiModelProperty(value = "消息推送的状态")
    private String status;

    @ApiModelProperty(value = "推送结果")
    private String pushResult;

    @ApiModelProperty(value = "接受者用户编码，可直接指定接受者手机号或邮箱地址等")
    private String toUser;

    @ApiModelProperty(value = "推送时间")
    private Date pushTime;

    @ApiModelProperty(value = "业务主键")
    private String bizKey;

    @ApiModelProperty(value = "业务类型")
    private String bizType;
}